/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   newmain.cpp
 * Author: jarda
 *
 * Created on 12. listopadu 2017, 15:29
 */

#include <cstdlib>
#include <iostream>

#include "trie.hpp"

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {
    trie trie;
    init(trie);
   // scope_guard sg([&] () { deallocate(trie); });
   
    insert(trie,"abcd");

   std:: cout << contains(trie,"abcd");
      std:: cout << contains(trie,"abc");
         std:: cout << contains(trie,"bc");
                  std:: cout << contains(trie,"d");
                           std:: cout << contains(trie,"a");
                                    std:: cout << contains(trie,"");





      std:: cout << size(trie);

   
    
    
    return 0;
}

